package com.atguigu;

import com.atguigu.Dao.BookDao;
import com.atguigu.Dao.Impl.BookDaoImpl;
import com.atguigu.config.SpringConfig;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;


public class Main {
    public static void main(String[] args) {
        System.out.println("Hello world!");
        ApplicationContext ctx = new AnnotationConfigApplicationContext(SpringConfig.class);
        BookDao bean = ctx.getBean(BookDao.class);
        bean.update();
    }
}